<?php

class DefaultController extends Controller
{
        public $layout= 'main';
        public function filters(){
            return array(
                'accessControl',
                );
        }
        public function allowedActions()
	{
	 	return 'index, test';
	}
	public function actionIndex()
	{
		$this->render('index');
                
	}
        public function actionRights()
	{
		// Create a data provider for listing the users
		$dataProvider = new RAssignmentDataProvider(array(
			'pagination'=>array(
				'pageSize'=>50,
			),
		));
                //new RAssignmentDataProvider
		// Render the view
		$this->render('view', array(
			'dataProvider'=>$dataProvider,
		));           

	}
}